﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;

namespace BUS
{
    public class SanPhamBUS
    {
        SanPhamDAO cls = new SanPhamDAO();
        string str;
        //Load dữ liệu
        public DataTable LoadSanPham()
        {
            return cls.LoadSanPham();
        }
        //isert va update
        public void IsUp_SP(SanPhamDTO p, bool flag)
        {
            cls.IsUp_SP(p, flag);
        }
        //del
        public void Del_SP(SanPhamDTO  p)
        {
            cls.Del_SP(p);
        }
        // tim kiem
        public DataTable Tim_SP(SanPhamDTO p, bool flag)
        {
            return cls.Tim_SP(p,flag );
        }
        //kho
        public DataTable Kho()
        {
            return  cls.Kho();
        }
        //Quay
        public DataTable Quay()
        {
            return  cls.Quay();
        }
        
    }
}
